/*
 * @Author: daidai
 * @Date: 2022-01-12 14:22:29
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-04-28 14:53:02
 * @FilePath: \web-pc\src\pages\big-screen\router\index.js
 */
// import Vue from "vue";
// import VueRouter from "vue-router";

// Vue.use(VueRouter);
// // 判断环境是否是微应用打开
// let microPath = ''
// if (window.__POWERED_BY_QIANKUN__) {
//   microPath = '/micro-screen'
// }

// const routes = [ 
//    {
//   path: microPath +  '/',
//   redirect: '/fjy-largescreen',
// },
// {
//   path:microPath + '/fjy-largescreen',
//   name: 'fjyLargescreen',
//   component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/indexs/index.vue'),
// }
// // {
// //   path: '/home',
// //   name: 'home',
// //   component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/home.vue'),
// //   children:[
// //     {
// //       path: '/index',
// //       name: 'index',
// //       component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/indexs/index.vue'),
// //     }
// //   ]
// // }, 
// ];
// const router = new VueRouter({
//   mode: "hash",
//   // base: process.env.BASE_URL,
//   routes
// });

// export default router;



let microPath = ''
if (window.__POWERED_BY_QIANKUN__) {
  microPath = '/micro-screen'
}

const routes = [ 
   {
  path: microPath +  '/',
  redirect: '/screen-index',
},

{
  path:microPath + '/fjy-largescreen',
  name: 'fjyLargescreen',
  component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/home.vue'),
    children:[
    {
      path: microPath + '/screen-index',
      name: 'screenIndex',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/indexs/index.vue'),
    }
  ]
}

];
// const router = new VueRouter({
//   mode: "hash",
//   // base: process.env.BASE_URL,
//   routes
// });

export default routes;



// const routes = [  {
//   path: '/',
//   redirect: '/index',
// },
// {
//   path: '/home',
//   name: 'home',
//   component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/home.vue'),
//   children:[
//     {
//       path: '/index',
//       name: 'index',
//       component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/indexs/index.vue'),
//     }
//   ]
// }, 
// ];
// const router = new VueRouter({
//   mode: "hash",
//   // base: process.env.BASE_URL,
//   routes
// });

// export default router;